home *** CD-ROM | disk | FTP | other *** search
- /* Recursively scans directories and generates thumbnails objects
- for ImageDesk (doesn't save catalogs).
-
- From Michael Schaffner.
-
- Thanks Michael!
- */
-
- OPTIONS RESULTS
-
- if( ADDRESS() ~= "IDESK_REXXPORT" ) then
- ADDRESS IDESK_REXXPORT
-
- /* PARSE ARG ROOT */
-
- IDGETPATH '"Zu durchsuchender Pfad : "'
- ROOT = result
-
- if (RIGHT(ROOT,1) ~== ':') & (RIGHT(ROOT,1) ~== '/')
- then ROOT = ROOT||'/'
-
- if ~show('L', "rexxsupport.library")
- then do
- if ~addlib('rexxsupport.library', 0, -30)
- then
- say "Added rexxsupport.library"
- else do
- say "Rexxsupport.library not available, exiting..."
- exit 10
- end
- end
-
- GENTHUMBNAILS ROOT
- CALL SCANDIR(ROOT)
-
- EXIT
-
- SCANDIR: PROCEDURE
- PARSE ARG AKTDIR
- DIRFILES = ShowDir(AKTDIR,DIR)
- DO I = 1 TO WORDS(DIRFILES)
- GENTHUMBNAILS '"'||AKTDIR||WORD(DIRFILES,I)||'"'
- DUMMY = SCANDIR(AKTDIR||WORD(DIRFILES,I)||'/')
- END
- RETURN 0
-